
package com.hlkj.pay.infrastructure.mapper.payment;
/*
 * Hlpay-Plus aggregate payment system.
 * Copyright (c) 2024-2025 Hlpay Team Copyright has the right of final interpretation.
 */

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hlkj.framework.mybatis.core.mapper.BaseMapperX;
import com.hlkj.pay.dto.merchant.MerchantPaymentPageStatisticsDto;
import com.hlkj.pay.dto.payment.MerchantPaymentDetailDto;
import com.hlkj.pay.dto.payment.MerchantPaymentPageDto;
import com.hlkj.pay.dto.payment.MerchantPaymentPageQueryDto;
import com.hlkj.pay.dto.payment.MerchantPaymentStatisticsDto;
import com.hlkj.pay.infrastructure.model.payment.MerchantPaymentDetailDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author HlpayTeam
 * @date 2024/11/20 13:31
 */
@Mapper
public interface MerchantPaymentDetailMapper extends BaseMapperX<MerchantPaymentDetailDO> {

    /**
     *
     * @param mpPage
     * @param queryWrapper
     */
    IPage<MerchantPaymentDetailDto> selectDetailPage(IPage<MerchantPaymentDetailDto> mpPage, @Param("ew") QueryWrapper<MerchantPaymentDetailDto> queryWrapper);
	IPage<MerchantPaymentPageDto>  selectFilePage(IPage<MerchantPaymentPageDto> mpPage, @Param("ew") QueryWrapper<MerchantPaymentPageDto> queryWrapper);
    MerchantPaymentPageStatisticsDto merchantPaymentStatistics(@Param("query") MerchantPaymentPageQueryDto merchantPaymentReq);


    List<MerchantPaymentDetailDto> selectDetailList(@Param("ew") QueryWrapper<MerchantPaymentDetailDto> queryWrapper);


    List<MerchantPaymentStatisticsDto> statisticsByWhere(@Param("ew") QueryWrapper<MerchantPaymentPageDto> queryWrapper);


}
